package com.css.zfzx.fxpg.modules.casulaty.probability.repository.entity;

import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * 伤亡概率
 *
 * @author leon
 * @date 2020-12-03
 */
@Data
@Entity
@Table(name = "fx_casulaty_probability")
public class FxCasulatyProbabilityEntity implements Serializable {

    /**
     * 期望值（人）
     */
    @Column(name = "expect")
    private Float expect;
    /**
     * 创建人
     */
    @Column(name = "create_user")
    private String createUser;
    /**
     * 拟合概率值p2-修改
     */
    @Column(name = "probability_two")
    private Float probabilityTwo;
    /**
     * 期望值（人）-修改值
     */
    @Column(name = "changed_expect")
    private Float changedExpect;
    /**
     * 破坏程度
     */
    @Column(name = "damage_degree")
    private String damageDegree;
    /**
     * 伤亡数（人）
     */
    @Column(name = "casualties")
    private Float casualties;
    /**
     * 区
     */
    @Column(name = "area")
    private String area;
    /**
     * 市
     */
    @Column(name = "city")
    private String city;
    /**
     * 是否有效,0:无效,1:有效
     */
    @Column(name = "is_valid")
    private String isValid;
    /**
     * 分区标识
     */
    @Column(name = "partition_flag")
    private String partitionFlag;
    /**
     * 修改人
     */
    @Column(name = "update_user")
    private String updateUser;
    /**
     * 主键ID
     */
    @Id
    @Column(name = "id")
    private String id;
    /**
     * 修改时间
     */
    @Column(name = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date updateTime;
    /**
     * 人员伤亡（重伤/死亡）
     */
    @Column(name = "casulaty")
    private String casulaty;
    /**
     * 时间段（白天/黑夜）
     */
    @Column(name = "period")
    private String period;
    /**
     * 拟合概率值p1-线上计算
     */
    @Column(name = "probability_one")
    private Float probabilityOne;
    /**
     * 省
     */
    @Column(name = "province")
    private String province;
    /**
     * 创建时间
     */
    @Column(name = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTime;
    /**
     * 行政区划组合编码+探槽码
     */
    @Column(name = "object_code")
    private String objectCode;

}

